import {httpRequest} from '@/request/https'

export default {
    /**
     * 获取列表列
     * */
    getTableColumnCustom: params => httpRequest({url: `/con/common/getTableColumn`, method: 'get', params}),
    /**
     * 获取用户自定义列
     * */
    getTableColumn: params => httpRequest({url: `/con/common/getCurrentUserTableColumn`, method: 'get', params}),
    /**
     * 获取筛选条件
     * */
    getQueryItem: params => httpRequest({url: `/con/common/getQueryItem`, method: 'get', params}),
    /**
     * 保存列表展示列
     * */
    postTableColumn: params => httpRequest({url: `/con/common/saveTableColumn`, method: 'post', params}),
    /**
     * 保存筛选条件
     * */
    postQueryItem: params => httpRequest({url: `/con/common/saveQueryItem`, method: 'post', params}),
    /**
     * 删除筛选条件
     * */
    deleteQueryItem: params => httpRequest({url: `/con/common/delQueryItem`, method: 'delete', params}),
    /**
     * 获取用户配置的筛选条件
     * */
    getSaveQueryItem: params => httpRequest({url: `/con/common/getCurrentUserQueryItem`, method: 'get', params}),
    /**
     * 文件上传
     * */
    postFileUpload: params => httpRequest({url: `/con/common/upload`, method: 'post', params}),
    /**
     * 上传合同并解析
     * */
    postFileUploadAnalysis: params => httpRequest({url: `/con/common/uploadContractWithAnalysis`, method: 'post', params}),
    /**
     * 保存合同关联标签
     * */
    postContractLabel: params => httpRequest({url: `/con/common/saveContractLabel`, method: 'post', params}),
    /**
     * 上传合同附件
     * */
    postUploadContractFiles: params => httpRequest({url: `/con/common/uploadContractFiles`, method: 'post', params}),
    /**
     * 修改合同附件
     * */
    putUploadContractFiles: params => httpRequest({url: `/con/common/updateContractFiles`, method: 'post', params}),
    /**
     * 删除合同附件
     * */
    deleteUploadContractFiles: params => httpRequest({url: `/con/common/delConFile`, method: 'delete', params}),
    /**
     * 自定义页码下载合同
     * */
    getDownloadContractWithPageNum: params => httpRequest({url: `/con/common/downloadContractWithPageNum`, method: 'get', params}),
    /**
     * 获取系统标签
     * */
    getSystemLabels: params => httpRequest({url: `/con/common/getSystemLabel`, method: 'get', params}),
    /**
     * 删除合同标签
     * */
    deletwContranctLabels: params => httpRequest({url: `/con/common/delConLabel`, method: 'delete', params}),
    /**
     * 补充除船运合同原件
     * */
    supppleContract: params => httpRequest({url: `/con/common/modifyFile`, method: 'post', params}),
    /**
     * 根据合同类型模糊查询所有合同
     * */
    getContractAllList: params => httpRequest({url: `/con/common/getAllContractByModule`, method: 'get', params})
}
